<%--
  Created by IntelliJ IDEA.
  User: 10352
  Date: 2022/11/9
  Time: 15:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/user/update2" method="post">
    编号：<input type="text" name="id" value="${show.id}"><br>
    账号：<input type="text" name="account" value="${show.account}"><span style="color: red">${accountError}</span><br>
    真实姓名：<input type="text" name="realName" value="${show.realName}"><span style="color: red">${realNameError}</span><br>
    密码：<input type="text" name="password" value="${show.password}"><span style="color: red">${passwordError}</span><br>
    性别： <input type="radio" name="sex" value="1" ${show.sex==1?"checked":""}>女
    <input type="radio" name="sex" value="2" ${show.sex==2?"checked":""}> 男<br>
    电话：<input type="text" name="phone" value="${show.phone}"><span style="color: red">${phoneError}</span><br>
    地址：<input type="text" name="address" value="${show.address}"><span style="color: red">${addressError}</span><br>
    角色：
    <select name="roleId">
        <option value="1" ${show.roleId==1?"selected":""} >管理系统员</option>
        <option value="2" ${show.roleId==2?"selected":""}>店长</option>
        <option value="3" ${show.roleId==3?"selected":""}>店员</option>
    </select><br>
    <input type="submit">
</form>
<script src="${pageContext.request.contextPath}/statics/layui/layui.js" charset="utf-8"  type="text/javascript"></script>
<script type="text/javascript">
    layui.use('laydate', function() {
        var laydate = layui.laydate;

        //常规用法
        laydate.render({
            elem: '#test1'
        });
    });
</script>
</body>
</html>
